
#ifndef DHT11_H
#define DHT11_H
#include <stdint.h>
// 初始化DHT11相关的GPIO
typedef struct{
    float humidity;
    float temperature;
} DHT11_Result;
DHT11_Result* DHT11_ReadData(unsigned int DHT11_DATA_PIN);
float getTemperature(DHT11_Result* result);
float getHumidity(DHT11_Result* result);
#endif  // DHT11_H